package com.cherry.domain;

import java.util.Set;

/**
 * 多的一方，不需要加上外键的属性名
 * @author dell
 *
 */
public class LinkMan {

	private long id;
	private String name;
	private char gender;
	private String phone;
	private String mobile;
	private String email;
	private String qq;
	private String position;
	private String memo;
	
	//需要一的一方
	private Customer customer;
	
	//用的是反射，必须有无参的构造方法
	public LinkMan() {
		super();
	}
	
	public LinkMan(long id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	@Override
	public String toString() {
		return "LinkMan [id=" + id + ", name=" + name + ", gender=" + gender + ", phone=" + phone + ", mobile=" + mobile
				+ ", email=" + email + ", qq=" + qq + ", position=" + position + ", memo=" + memo + "]";
	}
	
}
